package cn.z2huo.knowledge.basic.string.compare;

import org.apache.commons.lang3.StringUtils;

/**
 * <p>
 *
 * @author z2huo
 */
public class StringCompareDemo {
    public static void main(String[] args) {
        String dateString = "20240101";
        String dateString2 = "20991231";
        String dateString3 = "20230202";

        int compareResult = StringUtils.compare(dateString, dateString2);
        System.out.println(compareResult);
        compareResult = StringUtils.compare(dateString, dateString3);
        System.out.println(compareResult);
    }
}